<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>用户搜索列表</title>
        <link href="/electriccar/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="/electriccar/Public/admin/js/jquery.js"></script>
    </head>

    <body>

        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li><a href="<?php echo U('index/welcome');?>">首页</a></li>
                <li><a href="<?php echo U('user/search');?>">用户搜索列表</a></li>
            </ul>

        </div>

        <div class="formbody">    
            <form name="seachform" id="seachform" action="<?php echo U('user/search');?>" method="post">
                <ul class="seachform">
                    <li><label>综合查询</label><input name="key" id="keyword" value="<?=I('key')?>" type="text" class="scinput" /></li> 
                    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
                </ul>
            </form>
            <table class="tablelist">
                <thead>
                    <tr>
                        <th><input name="" type="checkbox" value=""/></th>
                        <th>编号</th>
                        <th>用户名</th>
                        <th>关键字</th> 
                        <th>搜索时间</th> 
                    </tr>
                </thead>
                <tbody>
                    <?php if(is_array($model)): $i = 0; $__LIST__ = $model;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$user): $mod = ($i % 2 );++$i;?><tr>
                            <td><input name="" type="checkbox" value="" /></td>
                            <td><?php echo ($user["id"]); ?></td> 
                            <td><?php echo ($user["username"]); ?></td>  
                            <td><?php echo ($user["key"]); ?></td>
                            <td><?php echo (date("Y-m-d H:i:s",$user["time"])); ?></td> 
                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
            </table> 
            <?php echo ($pageshow); ?> 
        </div>
        <script type="text/javascript">
            $('.tablelist tbody tr:odd').addClass('odd');
        </script>
    </body>

</html>